{<?php if($stat == 'ok'):?>
<?php else: ?>"code": "<?php echo $error_code ?>","message": "<?php echo $error_msg ?>",
<?php endif; ?>"stat": "<?php echo $stat?>"}